package enumerated;

public enum SpaceShip {
	SCOUT,CARGO,TRANSPORT,CRUISER,BATTLESHIP,MOTHERSHIP;
	public String toString(){
		String id=name();
		//String java.lang.String.substring(int beginIndex)
		String lower = id.substring(1).toLowerCase();
		return id.charAt(0)+lower;
	}
	
	
	public static void main(String[] args){
		for (SpaceShip ship:SpaceShip.values()) {
			System.out.println(ship);
		}
	}
}
